/**
 *
 * Copyright 1991-2010 TEAM International. All rights reserved 
 *
 */
package com.lindenvalley.de.content.response;

import java.util.ArrayList;
import java.util.List;

import org.simpleframework.xml.ElementList;
import org.simpleframework.xml.Root;

/**
 * @author RuslanI
 *
 */
@Root(strict=false, name="response")
public class Response {
	
	@ElementList(inline=true, required=false)
	private List<ResponseSection> sections;

	/**
	 * @param sections the sections to set
	 */
	public void setSections(List<ResponseSection> sections) {
		this.sections = sections;
	}

	/**
	 * @return the sections
	 */
	public List<ResponseSection> getSections() {
		return sections;
	}
	
	public void addSection(ResponseSection section){
		if (sections == null)
			sections = new ArrayList<ResponseSection>();
		sections.add(section);
		
	}
		

}
